home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: emul_handler_gcc.h,v 1.2 1996/08/01 17:41:22 digulla Exp $
- $Log: emul_handler_gcc.h,v $
- Revision 1.2 1996/08/01 17:41:22 digulla
- Added standard header for all files
-
- Desc:
- Lang:
- */
- #ifndef EMUL_HANDLER_GCC_H
- #define EMUL_HANDLER_GCC_H
- #include <aros/libcall.h>
- #include <exec/execbase.h>
- #include <exec/devices.h>
- #include <dos/dos.h>
-
- struct emulbase
- {
- struct Device device;
- struct Unit *stdin;
- struct Unit *stdout;
- struct Unit *stderr;
- struct ExecBase *sysbase;
- struct DosLibrary *dosbase;
- BPTR seglist;
- };
-
- #define expunge() \
- __AROS_LC0(BPTR, expunge, struct emulbase *, emulbase, 3, emul_handler)
-
- #ifdef SysBase
- #undef SysBase
- #endif
- #define SysBase emulbase->sysbase
- #ifdef DOSBase
- #undef DOSBase
- #endif
- #define DOSBase emulbase->dosbase
-
- #endif
-
-